<?php
/**
 * Created by Veyron
 * User: Vy
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/1/17
 * Time: 11:31
 */

use \think\facade\Route;

Route::rule('smscode','sms/code','POST');
// 资源路由
//index	GET	blog	index
//create	GET	blog/create	create
//save	POST	blog	save
//read	GET	blog/:id	read
//edit	GET	blog/:id/edit	edit
//update	PUT	blog/:id	update
//delete	DELETE	blog/:id	delete
Route::resource('user','User');
Route::get('logout','Loginout/index');

Route::get('category/search/:cid','Category/search');
Route::get('subcategory/:cid','Category/sub'); //查询第三级分类

Route::get('lists','mall.lists/index'); //商品分类列表
Route::get('detail/:id','mall.detail/index');

Route::resource('order','order.index');
